package com.hup.utils.io.socket.udp;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * @author hugan
 * @date 2020/3/29
 */
public class UdpServer extends UdpCore {

    public UdpServer(int port, UdpHandler handler) {
        super(port, handler);
    }

    @Override
    protected ThreadPoolTaskExecutor initExecutor() {
        ThreadPoolTaskExecutor executor = super.initExecutor();
        executor.setThreadNamePrefix("udp-server-");
        return executor;
    }

}
